var arr = [23, 11, 5, 6, 4, 2, 5, 8, 1, 2, 7, 9];

function bubbleSort(arr){
	if(!arr || arr.length <= 1){
		return arr;
	}
	var max = arr[0];
	for(let i = 1; i< arr.length; i++){
		if(max < arr[i]){
			swap(max, arr[i])
			max = arr[i]
		}
	}

	function (params) {
		
	}
}